//
//  MainViewController.swift
//  LPZ-DYZB
//
//  Created by 刘培壮 on 2016/11/9.
//  Copyright © 2016年 刘培壮. All rights reserved.
//

import UIKit

class MainViewController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()

        addChildVC(string: "Home")
        addChildVC(string: "Live")
        addChildVC(string: "Follow")
        addChildVC(string: "Profile")
    }


    private func addChildVC(string: String) {
        let vc = UIStoryboard.init(name: string, bundle: nil).instantiateInitialViewController()!
        addChildViewController(vc)
    }
}
